package com.binarysoft.service.common.threadpool;

import common.framework.dsb.DynamicService;

/**
 * @author David
 *
 */
public interface ThreadPoolService extends DynamicService {
	/**
	 * Add runnable task to thread pool to be executed.
	 * 
	 * @param runnable
	 *            Runnable task
	 */
	void execute(Runnable runnable);

	/**
	 * Get queue size of the current thread pool
	 * 
	 * @return
	 */
	int getQueueSize();
}
